<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String basePath = request.getContextPath();
%>

<s:set id="resources" value="#request['RESOURCES_INFO']"/>

<div class="pageContent">
	<form method="post" action="<%=basePath%>/res/resModify.action" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone,'确认修改此资源信息?')">
		<!-- 页面字段值 -->
		<div class="pageFormContent" layoutH="56">
		
			<input type="hidden" id="resId" name="resources.resId" value="<s:property value="#resources.resId"></s:property>" />
			
			<div class="unit">
				<label>资源名称：</label> <input type="text" id="resName"
					name="resources.resName" class="required"
					value="<s:property value="#resources.resName"></s:property>" />
			</div>

			<div class="unit">
				<label>资源链接地址：</label> <input type="text" id="resAction"
					name="resources.resAction" value="<s:property value="#resources.resAction"></s:property>" />
			</div>

			<div class="unit">
				<label>资源编号：</label> <input type="text" id="resNodeNum"
					name="resources.resNodeNum" class="required"
					value="<s:property value="#resources.resNodeNum"></s:property>" />
			</div>

			<div class="unit">
				<label>资源状态：</label>
				<select name="resources.resStatus" default="<s:property value="#resources.resStatus"/>">
					<s:iterator value="#resources.resStatusMapping" var="status">
						<option value="<s:property value="#status.key"/>"><s:property value="#status.value"/></option>
					</s:iterator>
				</select>
			</div>

			<div class="unit">
				<label>资源备注：</label> <input type="text" id="resRemark"
					name="resources.resRemark"
					value="<s:property value="#resources.resRemark"></s:property>" />
			</div>


		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>

